const {src,dest,watch} = require("gulp");
const sass = require("gulp-sass")

function sassFn(){
    return src("./src/sass/shopping.scss")
    .pipe(sass().on("error",sass.logError))
    .pipe(dest("./dist/css"))
}

function sassWatchFn(cb){
    watch(["./src/sass/shopping.scss"],sassFn)
    cb();
}

exports.sass= sassWatchFn;